<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<title></title>
		<meta name="description" content="overview & stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link href="static/css/bootstrap.min.css" rel="stylesheet" />
		<link href="static/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="static/css/font-awesome.min.css" />
		<!-- 下拉框 -->
		<link rel="stylesheet" href="static/css/chosen.css" />
		
		<link rel="stylesheet" href="static/css/ace.min.css" />
		<link rel="stylesheet" href="static/css/ace-responsive.min.css" />
		<link rel="stylesheet" href="static/css/ace-skins.min.css" />
		
		<link rel="stylesheet" href="static/css/datepicker.css" /><!-- 日期框 -->
		<script type="text/javascript" src="static/js/jquery-1.7.2.js"></script>
		<script type="text/javascript" src="static/js/jquery.tips.js"></script>
		
<script type="text/javascript">
	
	
	//保存
	function save(){
			if($("#AL_CODE").val()==""){
			$("#AL_CODE").tips({
				side:3,
	            msg:'请输入公司编码',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#AL_CODE").focus();
			return false;
		}
		if($("#RI_NAME").val()==""){
			$("#RI_NAME").tips({
				side:3,
	            msg:'请输入酒店名称',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_NAME").focus();
			return false;
		}
		if($("#RI_ENAME").val()==""){
			$("#RI_ENAME").tips({
				side:3,
	            msg:'请输入酒店英文名',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_ENAME").focus();
			return false;
		}
		if($("#RI_ADDR").val()==""){
			$("#RI_ADDR").tips({
				side:3,
	            msg:'请输入酒店地址',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_ADDR").focus();
			return false;
		}
		if($("#RI_TEL").val()==""){
			$("#RI_TEL").tips({
				side:3,
	            msg:'请输入酒店电话',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_TEL").focus();
			return false;
		}
		if($("#RI_CONTACT").val()==""){
			$("#RI_CONTACT").tips({
				side:3,
	            msg:'请输入酒店联系人',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_CONTACT").focus();
			return false;
		}
		if($("#RI_NETINDATE").val()==""){
			$("#RI_NETINDATE").tips({
				side:3,
	            msg:'请输入入网日期',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_NETINDATE").focus();
			return false;
		}

		if($("#RI_BANKNAME").val()==""){
			$("#RI_BANKNAME").tips({
				side:3,
	            msg:'请输入银行开户名',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_BANKNAME").focus();
			return false;
		}
		if($("#RI_BANK").val()==""){
			$("#RI_BANK").tips({
				side:3,
	            msg:'请输入开户行',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_BANK").focus();
			return false;
		}
		if($("#RI_BANKACC").val()==""){
			$("#RI_BANKACC").tips({
				side:3,
	            msg:'请输入账号',
	            bg:'#AE81FF',
	            time:2
	        });
			$("#RI_BANKACC").focus();
			return false;
		}
		$("#Form").submit();
		$("#zhongxin").hide();
		$("#zhongxin2").show();
	}
	
</script>
	</head>
<body>
	<form action="airlinerummery/${msg }.do" name="Form" id="Form" method="post">
		<input type="hidden" name="AIRLINERUMMERY_ID" id="AIRLINERUMMERY_ID" value="${pd.AIRLINERUMMERY_ID}"/>
		<div id="zhongxin">
		<table id="table_report" class="table table-striped table-bordered table-hover">
			<td style="width:70px;text-align: right;padding-top: 13px;">所属航空公司名称:</td>
			<td>
				<select class="chzn-select" name="AL_CODE" id="AL_CODE" data-placeholder="请选所属航空公司" style="vertical-align:top;">
					<option value=""></option>
					<option value="-1">无所属公司</option>
					<c:forEach items="${airInfoList}" var="airInfo">
						<option value="${airInfo.AIRLINEINFO_ID}" <c:if test="${airInfo.AIRLINEINFO_ID == pd.AIRLINEINFO_ID}">selected</c:if>>${airInfo.AL_NAME}</option>
					</c:forEach>
				</select>
			</td>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">酒店名称:</td>
				<td><input type="text" name="RI_NAME" id="RI_NAME" value="${pd.RI_NAME}" maxlength="32" placeholder="这里输入酒店名称" title="酒店名称"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">酒店英文名:</td>
				<td><input type="text" name="RI_ENAME" id="RI_ENAME" value="${pd.RI_ENAME}" maxlength="32" placeholder="这里输入酒店英文名" title="酒店英文名"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">酒店地址:</td>
				<td><input type="text" name="RI_ADDR" id="RI_ADDR" value="${pd.RI_ADDR}" maxlength="32" placeholder="这里输入酒店地址" title="酒店地址"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">酒店电话:</td>
				<td><input type="text" name="RI_TEL" id="RI_TEL" value="${pd.RI_TEL}" maxlength="32" placeholder="这里输入酒店电话" title="酒店电话"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">酒店联系人:</td>
				<td><input type="text" name="RI_CONTACT" id="RI_CONTACT" value="${pd.RI_CONTACT}" maxlength="32" placeholder="这里输入酒店联系人" title="酒店联系人"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">入网日期:</td>
				<td><input type="text" name="RI_NETINDATE" id="RI_NETINDATE" value="${pd.RI_NETINDATE}" maxlength="32" placeholder="这里输入入网日期" title="入网日期"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">状态:</td>
				<td><input type="number" name="RI_STATE" id="RI_STATE" value="${pd.RI_STATE}" maxlength="32" placeholder="这里输入状态" title="ri_state"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">银行开户名:</td>
				<td><input type="text" name="RI_BANKNAME" id="RI_BANKNAME" value="${pd.RI_BANKNAME}" maxlength="32" placeholder="这里输入银行开户名" title="ri_bankname"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">开户行:</td>
				<td><input type="text" name="RI_BANK" id="RI_BANK" value="${pd.RI_BANK}" maxlength="32" placeholder="这里输入开户行" title="开户行"/></td>
			</tr>
			<tr>
				<td style="width:70px;text-align: right;padding-top: 13px;">账号:</td>
				<td><input type="text" name="RI_BANKACC" id="RI_BANKACC" value="${pd.RI_BANKACC}" maxlength="32" placeholder="这里输入账号" title="账号"/></td>
			</tr>
			<tr>
				<td style="text-align: center;" colspan="10">
					<a class="btn btn-mini btn-primary" onclick="save();">保存</a>
					<a class="btn btn-mini btn-danger" onclick="top.Dialog.close();">取消</a>
				</td>
			</tr>
		</table>
		</div>
		
		<div id="zhongxin2" class="center" style="display:none"><br/><br/><br/><br/><br/><img src="static/images/jiazai.gif" /><br/><h4 class="lighter block green">提交中...</h4></div>
		
	</form>
	
	
		<!-- 引入 -->
		<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
		<script src="static/js/bootstrap.min.js"></script>
		<script src="static/js/ace-elements.min.js"></script>
		<script src="static/js/ace.min.js"></script>
		<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script><!-- 下拉框 -->
		<script type="text/javascript" src="static/js/bootstrap-datepicker.min.js"></script><!-- 日期框 -->
		<script type="text/javascript">
		$(top.hangge());
		$(function() {
			
			//单选框
			$(".chzn-select").chosen(); 
			$(".chzn-select-deselect").chosen({allow_single_deselect:true}); 
			
			//日期框
			$('.date-picker').datepicker();
			
		});
		
		</script>
</body>
</html>